<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import jwt_decode from 'jwt-decode'
export default {
  name: 'app',
  components: {},
  created() {
    if(sessionStorage.token){
      let decode=jwt_decode(sessionStorage.token)
      console.log(decode);
      this.$store.dispatch('setUser',decode)
    }
  },
}
</script>

<style>

</style>
